package structural.adapter;

public class ImageView {
    private final Image image;

    public ImageView(Image image) {
        this.image = image;
    }

    public void applyFilter(IFilter filter) {
        if (filter != null) {
            filter.apply(image);
        } else {
            System.out.println("No filter applied.");
        }
    }
}
